import request from '@/utils/request'

// ······························· 【全局表---start】 ····································
// 全局表-列表
export function getGlobal (params) {
  return request({
    url: '/global/getList',
    method: 'get',
    params:params
  })
}

// 全局表-新增
export function addGlobal(data) {
  return request({
    url: '/global/add',
    method: 'post',
    data:data
  })
}

// 全局表-修改
export function editGlobal(data) {
  return request({
    url: '/global/update',
    method: 'put',
    data: data
  })
}

// 全局表-删除
export function delGlobal(data) {
  return request({
    url: '/global/delete',
    method: 'delete',
    data: data
  })
}

// // 所有全局表-列表
// export function allGlobal(params) {
//   return request({
//     url: '/global/getAllData',
//     method: 'get',
//     params:params
//   })
// }

// 全局表-批量修改
export function editBatchGlobal(data) {
  return request({
    url: '/global/editSelfData',
    method: 'put',
    data: data
  })
}

// 全局表-查询公共数据
export function getPublicGlobal(params) {
  return request({
    url: '/global/getFilterData',
    method: 'get',
    params:params
  })
}

// 全局表-新增公共数据
export function addPublicGlobal(data) {
  return request({
    url: '/global/addGlobal',
    method: 'post',
    data:data
  })
}
// ······························· 【全局表---end】 ····································




// ······························· 【多语言---start】 ····································
// 多语言-列表
export function getMultilingual(params) {
  return request({
    url: '/message/getList',
    method: 'get',
    params:params
  })
}

// 多语言-新增
export function addMultilingual(data) {
  return request({
    url: '/message/add',
    method: 'post',
    data:data
  })
}

// 多语言-修改
export function editMultilingual(data) {
  return request({
    url: '/message/update',
    method: 'put',
    data: data
  })
}

// 多语言-删除
export function delMultilingual(data) {
  return request({
    url: '/message/delete',
    method: 'delete',
    data: data
  })
}

// 所有多语言-列表
export function allMultilingual(params) {
  return request({
    url: '/message/getAllMessages',
    method: 'get',
    params:params
  })
}
// ······························· 【多语言---end】 ····································



// ······························· 【后台多语言---start】 ····································
// 后台多语言-列表
export function getAdminMultilingual(params) {
  return request({
    url: '/adminMessage/getList',
    method: 'get',
    params:params
  })
}

// 后台多语言-新增
export function addAdminMultilingual(data) {
  return request({
    url: '/adminMessage/add',
    method: 'post',
    data:data
  })
}

// 后台多语言-修改
export function editAdminMultilingual(data) {
  return request({
    url: '/adminMessage/update',
    method: 'put',
    data: data
  })
}

// 后台多语言-删除
export function delAdminMultilingual(data) {
  return request({
    url: '/adminMessage/delete',
    method: 'delete',
    data: data
  })
}

// 所有后台多语言-列表
export function allAdminMultilingual(params) {
  return request({
    url: '/adminMessage/getAllMessages',
    method: 'get',
    params:params
  })
}
// ······························· 【后台多语言---end】 ····································




// ······························· 【礼物表---start】 ····································
// 礼物表-列表
export function getGift (params) {
  return request({
    url: '/gift/getList',
    method: 'get',
    params:params
  })
}

// 礼物表-新增
export function addGift(data) {
  return request({
    url: '/gift/add',
    method: 'post',
    data:data
  })
}

// 礼物表-修改
export function editGift(data) {
  return request({
    url: '/gift/update',
    method: 'put',
    data: data
  })
}

// 礼物表-删除
export function delGift(data) {
  return request({
    url: '/gift/delete',
    method: 'delete',
    data: data
  })
}

// 所有礼物表-列表
export function allGift(params) {
  return request({
    url: '/gift/getAllData',
    method: 'get',
    params: params
  })
}

// 礼物表-查询公共数据
export function getPublicGift(params) {
  return request({
    url: '/gift/getFilterData',
    method: 'get',
    params:params
  })
}

// 礼物表-新增公共数据
export function addPublicGift(data) {
  return request({
    url: '/gift/addGlobal',
    method: 'post',
    data:data
  })
}

// 礼物表-批量修改
export function editPublicGift(data) {
  return request({
    url: '/gift/editSelfData',
    method: 'put',
    data:data
  })
}
// ······························· 【礼物表---end】 ····································




// ······························· 【快捷聊天表---start】 ····································
// 快捷聊天表-列表
export function getChat (params) {
  return request({
    url: '/chat/getList',
    method: 'get',
    params:params
  })
}

// 快捷聊天表-新增
export function addChat(data) {
  return request({
    url: '/chat/add',
    method: 'post',
    data:data
  })
}

// 快捷聊天表-修改
export function editChat(data) {
  return request({
    url: '/chat/update',
    method: 'put',
    data: data
  })
}

// 快捷聊天表-删除
export function delChat(data) {
  return request({
    url: '/chat/delete',
    method: 'delete',
    data: data
  })
}

// 所有快捷聊天表-列表
export function allChat(params) {
  return request({
    url: '/chat/getAllData',
    method: 'get',
    params: params
  })
}

// 快捷聊天表-查询公共数据
export function getPublicChat(params) {
  return request({
    url: '/chat/getFilterData',
    method: 'get',
    params:params
  })
}

// 快捷聊天表-新增公共数据
export function addPublicChat(data) {
  return request({
    url: '/chat/addGlobal',
    method: 'post',
    data:data
  })
}

// 快捷聊天表-批量修改
export function editPublicChat(data) {
  return request({
    url: '/chat/editSelfData',
    method: 'put',
    data:data
  })
}
// ······························· 【快捷聊天表---end】 ····································




// ······························· 【荷官聊天表---start】 ····································
// 荷官聊天表-列表
export function getDealer (params) {
  return request({
    url: '/croupierChat/getList',
    method: 'get',
    params:params
  })
}

// 荷官聊天表-新增
export function addDealer(data) {
  return request({
    url: '/croupierChat/add',
    method: 'post',
    data:data
  })
}

// 荷官聊天表-修改
export function editDealer(data) {
  return request({
    url: '/croupierChat/update',
    method: 'put',
    data: data
  })
}

// 荷官聊天表-删除
export function delDealer(data) {
  return request({
    url: '/croupierChat/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【荷官聊天表---end】 ····································




// ······························· 【机器人表---start】 ····································
// 机器人表-列表
export function getRobot (params) {
  return request({
    url: '/robot/getList',
    method: 'get',
    params:params
  })
}

// 机器人表-新增
export function addRobot(data) {
  return request({
    url: '/robot/add',
    method: 'post',
    data:data
  })
}

// 机器人表-修改
export function editRobot(data) {
  return request({
    url: '/robot/update',
    method: 'put',
    data: data
  })
}

// 机器人表-删除
export function delRobot(data) {
  return request({
    url: '/robot/delete',
    method: 'delete',
    data: data
  })
}

// 所有机器人列表
export function allRobot(params) {
  return request({
    url: '/robot/getAllData',
    method: 'get',
    params: params
  })
}

// ----------------------------------------------------

// 机器人条件-列表
export function getRobotCondition (params) {
  return request({
    url: '/robotCondition/getList',
    method: 'get',
    params:params
  })
}

// 机器人条件-新增
export function addRobotCondition(data) {
  return request({
    url: '/robotCondition/add',
    method: 'post',
    data:data
  })
}

// 机器人条件-修改
export function editRobotCondition(data) {
  return request({
    url: '/robotCondition/editSelfData',
    method: 'put',
    data: data
  })
}

// 机器人条件-删除
export function delRobotCondition(data) {
  return request({
    url: '/robotCondition/delete',
    method: 'delete',
    data: data
  })
}

// 机器人条件(new)-列表
export function getNewRobotCondition (params) {
  return request({
    url: '/robotCondition2/getList',
    method: 'get',
    params:params
  })
}

// 机器人条件(new)-新增
export function addNewRobotCondition(data) {
  return request({
    url: '/robotCondition2/add',
    method: 'post',
    data:data
  })
}

// 机器人条件(new)-修改
export function editNewRobotCondition(data) {
  return request({
    url: '/robotCondition2/editSelfData',
    method: 'put',
    data: data
  })
}

// 机器人条件(new)-删除
export function delNewRobotCondition(data) {
  return request({
    url: '/robotCondition2/delete',
    method: 'delete',
    data: data
  })
}
// ---------------------------------------------------------------

// 机器人条件表-列表
export function allRobotCondition (params) {
  return request({
    url: '/robotTrigger/getAllData',
    method: 'get',
    params:params
  })
}

// 机器人表TeenPatti-列表
export function getRobotTeen (params) {
  return request({
    url: '/robotTeenPatti/getList',
    method: 'get',
    params:params
  })
}

// 机器人表TeenPatti-新增
export function addRobotTeen(data) {
  return request({
    url: '/robotTeenPatti/add',
    method: 'post',
    data:data
  })
}

// 机器人表TeenPatti-修改
export function editRobotTeen(data) {
  return request({
    url: '/robotTeenPatti/update',
    method: 'put',
    data: data
  })
}

// 机器人表TeenPatti-删除
export function delRobotTeen(data) {
  return request({
    url: '/robotTeenPatti/delete',
    method: 'delete',
    data: data
  })
}

// 所有机器人表TeenPatti-批量修改
export function allRobotTeenBatch(data) {
  return request({
    url: '/robotTeenPatti/editBatch',
    method: 'put',
    data:data
  })
}

// 所有机器人表TeenPatti-列表
export function allRobotTeen(params) {
  return request({
    url: '/robotTeenPatti/getAllData',
    method: 'get',
    params:params
  })
}
// ---------------------------------------------------------------
// 机器人表Rummy-列表
export function getRobotRummy (params) {
  return request({
    url: '/robotRummy/getList',
    method: 'get',
    params:params
  })
}

// 机器人表Rummy-新增
export function addRobotRummy(data) {
  return request({
    url: '/robotRummy/add',
    method: 'post',
    data:data
  })
}

// 机器人表Rummy-修改
export function editRobotRummy(data) {
  return request({
    url: '/robotRummy/update',
    method: 'put',
    data: data
  })
}

// 机器人表Rummy-删除
export function delRobotRummy(data) {
  return request({
    url: '/robotRummy/delete',
    method: 'delete',
    data: data
  })
}

// 所有机器人表Rummy-批量修改
export function allRobotRummyBatch(data) {
  return request({
    url: '/robotRummy/editBatch',
    method: 'put',
    data:data
  })
}

// 所有机器人表Rummy-列表
export function allRobotRummy(params) {
  return request({
    url: '/robotRummy/getAllData',
    method: 'get',
    params:params
  })
}
// ······························· 【机器人表---end】 ····································




// ······························· 【机器人-行为条件表---start】 ····································
// 行为条件表-列表
export function getBehavior(params) {
  return request({
    url: '/robotCondition/getList',
    method: 'get',
    params:params
  })
}

// 行为条件表-新增
export function addBehavior(data) {
  return request({
    url: '/robotCondition/add',
    method: 'post',
    data:data
  })
}

// 行为条件表-修改
export function editBehavior(data) {
  return request({
    url: '/robotCondition/update',
    method: 'put',
    data: data
  })
}

// 行为条件表-删除
export function delBehavior(data) {
  return request({
    url: '/robotCondition/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【机器人-带参数行为条件表】
// 带参数行为条件表-列表
export function getBehaviorMent(params) {
  return request({
    url: '/robotRound/getList',
    method: 'get',
    params:params
  })
}

// 带参数行为条件表-新增
export function addBehaviorMent(data) {
  return request({
    url: '/robotRound/add',
    method: 'post',
    data:data
  })
}

// 带参数行为条件表-修改
export function editBehaviorMent(data) {
  return request({
    url: '/robotRound/update',
    method: 'put',
    data: data
  })
}

// 带参数行为条件表-删除
export function delBehaviorMent(data) {
  return request({
    url: '/robotRound/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【机器人-行为条件表---end】 ····································





// ······························· 【房间表---start】 ····································
// 房间表-列表
export function getRoom (params) {
  return request({
    url: '/room/getList',
    method: 'get',
    params:params
  })
}

// 房间表-新增
export function addRoom(data) {
  return request({
    url: '/room/add',
    method: 'post',
    data:data
  })
}

// 房间表-修改
export function editRoom(data) {
  return request({
    url: '/room/update',
    method: 'put',
    data: data
  })
}

// 房间表-删除
export function delRoom(data) {
  return request({
    url: '/room/delete',
    method: 'delete',
    data: data
  })
}

// 房间表机器人-列表
export function getRoomRobot (params) {
  return request({
    url: '/roomRobot/getList',
    method: 'get',
    params:params
  })
}

// 房间表机器人-新增
export function addRoomRobot(data) {
  return request({
    url: '/roomRobot/add',
    method: 'post',
    data:data
  })
}

// 房间表机器人-修改
export function editRoomRobot(data) {
  return request({
    url: '/roomRobot/update',
    method: 'put',
    data: data
  })
}

// 房间表机器人-删除
export function delRoomRobot(data) {
  return request({
    url: '/roomRobot/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【房间表---end】 ····································




// ······························· 【道具表---start】 ····································
// 道具表-列表
export function getProp(params) {
  return request({
    url: '/item/getList',
    method: 'get',
    params:params
  })
}

// 道具表-新增
export function addProp(data) {
  return request({
    url: '/item/add',
    method: 'post',
    data:data
  })
}

// 道具表-修改
export function editProp(data) {
  return request({
    url: '/item/update',
    method: 'put',
    data: data
  })
}

// 道具表-删除
export function delProp(data) {
  return request({
    url: '/item/delete',
    method: 'delete',
    data: data
  })
}

// 所有道具-列表
export function allProperty(params) {
  return request({
    url: '/item/getAllData',
    method: 'get',
    params:params
  })
}

// 道具表-查询公共数据
export function getPublicProp(params) {
  return request({
    url: '/item/getFilterData',
    method: 'get',
    params:params
  })
}

// 道具表-新增公共数据
export function addPublicProp(data) {
  return request({
    url: '/item/addGlobal',
    method: 'post',
    data:data
  })
}

// 道具表-批量修改
export function editPublicProp(data) {
  return request({
    url: '/item/editSelfData',
    method: 'put',
    data:data
  })
}
// ······························· 【道具表---end】 ····································




// ······························· 【预设表---start】 ····································
// 预设表-列表
export function getPreinstall(params) {
  return request({
    url: '/arrange/getList',
    method: 'get',
    params:params
  })
}

// 预设表-新增
export function addPreinstall(data) {
  return request({
    url: '/arrange/add',
    method: 'post',
    data:data
  })
}

// 预设表-修改
export function editPreinstall(data) {
  return request({
    url: '/arrange/update',
    method: 'put',
    data: data
  })
}

// 预设表-删除
export function delPreinstall(data) {
  return request({
    url: '/arrange/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【预设表---end】 ····································




// ······························· 【牌组类型---start】 ····································
// 基础牌-列表
export function getCard(params) {
  return request({
    url: '/poker/getList',
    method: 'get',
    params:params
  })
}

// 所有基础牌-列表
export function allCard(params) {
  return request({
    url: '/poker/getAllData',
    method: 'get',
    params:params
  })
}

// 牌型组合-列表
export function getDeck(params) {
  return request({
    url: '/pokerHands/getList',
    method: 'get',
    params:params
  })
}

// 牌型组合-新增
export function addDeck(data) {
  return request({
    url: '/pokerHands/add',
    method: 'post',
    data:data
  })
}

// 牌型组合-修改
export function editDeck(data) {
  return request({
    url: '/pokerHands/update',
    method: 'put',
    data: data
  })
}

// 牌型组合-删除
export function delDeck(data) {
  return request({
    url: '/pokerHands/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【牌组类型---end】 ····································



// ······························· 【VIP管理---start】 ····································
// VIP管理-列表
export function getVip (params) {
  return request({
    url: '/vipConfig/getList',
    method: 'get',
    params:params
  })
}

// VIP管理-新增
export function addVip(data) {
  return request({
    url: '/vipConfig/add',
    method: 'post',
    data:data
  })
}

// VIP管理-修改
export function editVip(data) {
  return request({
    url: '/vipConfig/update',
    method: 'put',
    data: data
  })
}

// VIP管理-删除
export function delVip(data) {
  return request({
    url: '/vipConfig/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【VIP管理---end】 ····································




// ······························· 【VIP礼包---start】 ····································
// VIP礼包-列表
export function getVipGift (params) {
  return request({
    url: '/vipGiftConfig/getList',
    method: 'get',
    params:params
  })
}

// VIP礼包-新增
export function addVipGift(data) {
  return request({
    url: '/vipGiftConfig/add',
    method: 'post',
    data:data
  })
}

// VIP礼包-修改
export function editVipGift(data) {
  return request({
    url: '/vipGiftConfig/update',
    method: 'put',
    data: data
  })
}

// VIP礼包-删除
export function delVipGift(data) {
  return request({
    url: '/vipGiftConfig/delete',
    method: 'delete',
    data: data
  })
}

// 领取记录-列表
export function getVipRecord (params) {
  return request({
    url: '/vipReceiveRecord/getList',
    method: 'get',
    params:params
  })
}
// ······························· 【VIP礼包---end】 ····································




// ······························· 【热更管理---start】 ····································
// 热更管理-列表
export function getThermal(params) {
  return request({
    url: '/configService/getList',
    method: 'get',
    params:params
  })
}

// 热更管理-新增
export function addThermal(data) {
  return request({
    url: '/configService/add',
    method: 'post',
    data:data
  })
}

// 热更管理-修改
export function editThermal(data) {
  return request({
    url: '/configService/update',
    method: 'put',
    data: data
  })
}

// 热更管理-删除
export function delThermal(data) {
  return request({
    url: '/configService/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【热更管理---end】 ····································




// ······························· 【服务器状态---start】 ····································
// 服务器状态-列表
export function getServer(params) {
  return request({
    url: '/systemMaintain/getList',
    method: 'get',
    params:params
  })
}

// 服务器状态-新增
export function addServer(data) {
  return request({
    url: '/systemMaintain/add',
    method: 'post',
    data:data
  })
}

// 服务器状态-修改
export function editServer(data) {
  return request({
    url: '/systemMaintain/update',
    method: 'put',
    data: data
  })
}

// 游戏服务器状态-查询
export function getGameServer(params) {
  return request({
    url: '/systemMaintain/getNowGameStatus',
    method: 'get',
    params: params
  })
}
// ······························· 【服务器状态---end】 ····································




// ······························· 【游戏管理---start】 ····································
// 游戏管理-列表
export function getGame(params) {
  return request({
    url: '/game/getList',
    method: 'get',
    params:params
  })
}

// 游戏管理-新增
export function addGame(data) {
  return request({
    url: '/game/add',
    method: 'post',
    data:data
  })
}

// 游戏管理-修改
export function editGame(data) {
  return request({
    url: '/game/update',
    method: 'put',
    data: data
  })
}

// 游戏管理-删除
export function delGame(data) {
  return request({
    url: '/game/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【游戏管理---end】 ····································




// ······························· 【banner管理---start】 ····································
// banner管理-列表
export function getBanner(params) {
  return request({
    url: '/banner/getList',
    method: 'get',
    params:params
  })
}

// banner管理-新增
export function addBanner(data) {
  return request({
    url: '/banner/add',
    method: 'post',
    data:data
  })
}

// banner管理-修改
export function editBanner(data) {
  return request({
    url: '/banner/update',
    method: 'put',
    data: data
  })
}

// banner管理-删除
export function delBanner(data) {
  return request({
    url: '/banner/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【banner管理---end】 ····································




// ······························· 【navigation管理---start】 ····································
// navigation管理-列表
export function getNavigation(params) {
  return request({
    url: '/navigation/getList',
    method: 'get',
    params:params
  })
}

// navigation管理-新增
export function addNavigation(data) {
  return request({
    url: '/navigation/add',
    method: 'post',
    data:data
  })
}

// navigation管理-修改
export function editNavigation(data) {
  return request({
    url: '/navigation/update',
    method: 'put',
    data: data
  })
}

// navigation管理-删除
export function delNavigation(data) {
  return request({
    url: '/navigation/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【navigation管理---end】 ····································




// ······························· 【重载表---start】 ····································
// 重载表-列表
export function getRefresh(params) {
  return request({
    url: '/global/modifyItem',
    method: 'get',
    params:params
  })
}

// 重载表-刷新
export function addRefresh(data) {
  return request({
    url: '/global/modify',
    method: 'post',
    data:data
  })
}
// ······························· 【重载表---end】 ····································




// ······························· 【跑马灯与机器人---start】 ····································
// 跑马灯与机器人-列表
export function getRunning(params) {
  return request({
    url: '/robotMarquee/getList',
    method: 'get',
    params:params
  })
}

// 跑马灯与机器人-新增
export function addRunning(data) {
  return request({
    url: '/robotMarquee/add',
    method: 'post',
    data:data
  })
}

// 跑马灯与机器人-修改
export function editRunning(data) {
  return request({
    url: '/robotMarquee/update',
    method: 'put',
    data: data
  })
}

// 跑马灯与机器人-删除
export function delRunning(data) {
  return request({
    url: '/robotMarquee/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【跑马灯与机器人---end】 ····································




// ······························· 【代理升降级---start】 ····································
// 代理升降级-列表
export function getProxy(params) {
  return request({
    url: '/gent/getList',
    method: 'get',
    params:params
  })
}

// 代理升降级-新增
export function addProxy(data) {
  return request({
    url: '/gent/add',
    method: 'post',
    data:data
  })
}

// 代理升降级-修改
export function editProxy(data) {
  return request({
    url: '/gent/update',
    method: 'put',
    data: data
  })
}

// 代理升降级-删除
export function delProxy(data) {
  return request({
    url: '/gent/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【代理升降级---end】 ····································




// ······························· 【代理返佣---start】 ····································
// 代理升降级-列表
export function getRebate(params) {
  return request({
    url: '/gentModel/getList',
    method: 'get',
    params:params
  })
}

// 代理升降级-新增
export function addRebate(data) {
  return request({
    url: '/gentModel/add',
    method: 'post',
    data:data
  })
}

// 代理升降级-修改
export function editRebate(data) {
  return request({
    url: '/gentModel/update',
    method: 'put',
    data: data
  })
}

// 代理升降级-删除
export function delRebate(data) {
  return request({
    url: '/gentModel/delete',
    method: 'delete',
    data: data
  })
}
// ······························· 【代理返佣---end】 ····································